import {useSelector} from 'react-redux'
export default function CounterShow() {
  console.log('CounterShow')
  // 通过useSelector读取状态数据
  // 回调函数接收store中管理的状态数据
  const count = useSelector(state => state.count)  // 是什么结构的? {count: 1}
  
  return (
    <h2>点击的次数: {count}</h2>
  )
}
